/*
 *
 * This program is free software; you can redistribute it and/or modify 
 * it under the terms of the GNU General Public License version 2 as 
 * published by the Free Software Foundation.
 *
 * thread_storage.h is for what ...
 *
 * Version: ***: thread_storage.h  Mon Aug 29 22:57:20 2011 poponion Exp $
 *
 * Authors:
 *   Author poponion <huangcm85@gmail.com>
 *     -some work detail if you want 
 *
 */

#ifndef THREAD_STORAGE_H_
#define THREAD_STORAGE_H_
#include<stdio.h>
#include<unistd.h>
#include<pthread.h>

class ThreadStorage
{
public:
  ThreadStorage();
  ~ThreadStorage();
  int init();
  int destory();
  int get_int();
  void set_int(int num);
private:
  pthread_key_t key_;
}
#endif
